package com.util;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * Created by wanglei on 15-3-15.
 */
public class WriteToHtml {

    public static void writeToHtml(HttpServletResponse response,Object data){
        try {
            PrintWriter writer=response.getWriter();
            writer.write(data.toString());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
